$.COLOR = new Object();
$.COLOR.active = true;

$.COLOR.colorClass = new Array('slide1', 'slide2', 'slide3', 'slide4', 'slide5', 'slide6', 'slide7', 'slide8', 'slide9', 'slide10', 'colorHome', 'colorCollection', 'colorDownload', 'orange', 'white', 'blu', 'orange2');

$.COLOR.addColorClass = function ($colorClass) {
    if (!$('body').hasClass($colorClass)) {
        $.COLOR.hideLogo(function () {
            $('body').addClass($colorClass);
            for (var i = 0; i < $.COLOR.colorClass.length; i++) {
                if ($.COLOR.colorClass[i] != $colorClass) {
                    $('body').removeClass($.COLOR.colorClass[i]);
                }
            }
            $.COLOR.showLogo(function () {
            });

        });
    } else {
    }
}

$.COLOR.hideLogo = function (callBackMe) {
    TweenLite.to($('header'), .65, {css: {opacity: 0}, ease: Expo.easeOut, onComplete: callBackMe});

}
$.COLOR.showLogo = function (callBackMe) {
    TweenLite.to($('header'), .65, {css: {opacity: 1}, ease: Expo.easeOut, onComplete: callBackMe});

}